 {%load theme_list_url%}
        <li class="dropdown">
          <a id="drop2" role="button" data-toggle="dropdown" href="#">排序<b class="caret"></b></a>
          <ul id="menu2" class="dropdown-menu" role="menu" aria-labelledby="drop2">
             {%for item in rankList%}
                  <li role="presentation" {% ifequal rank item.0 %}class="active"{% else %}{% endifequal %}><a role="menuitem" tabindex="-1" href="{{request|theme_list_format_url:'rank'}}rank={{item.0}}&"><h4>{{item.1}}</h4></a></li>
              {%endfor%}
              <li class="divider"></li>
              <form method="get" action="">
                  <li role="presentation">
                      {%for item in queryList%}
                          <input type="hidden" value="{{item.1}}" name="{{item.0}}">
                      {%endfor%}
              {%ifequal order_type '1'%}

                  <input type="hidden" value="0" name="order_type"><button class="btn btn-default" type="submit">升序</button>
              {%else%}

                  <input type="hidden" value="1" name="order_type"><button class="btn btn-default" type="submit">降序</button>
              {%endifequal%}
                  </li>
              </form>
          </ul>
        </li>

